export default function switch_bar(switch_status,content,text,i){
    console.log(content,'content');
    const lang = localStorage.getItem('lang')
    switch_status.value = !switch_status.value
    if(switch_status.value){
        content.value.style.maxHeight = '10.5em'
        if(lang == 'en'){
			text.value.innerHTML = 'expand'
		}else{
			text.value.innerHTML = '展開'
		}
        i.value.classList.remove('switch-icon-down')
    }else{
        content.value.style.maxHeight = '100em'
        if(lang == 'en'){
			text.value.innerHTML = 'retract'
		}else{
			text.value.innerHTML = '收起'
		}
        i.value.classList.add('switch-icon-down')
    }
}